package com.itheima.自习.第一次.第十一题;
//定义程序员类Coder【属性：姓名 工号 工资】【行为：工作work】
public class Coder {
    private String name;
    private String id;
    private Double salary;

    public void work(){
        System.out.println("工资为:" + this.getSalary() + ",的程序员正在编写代码");
    }

    public Coder(String name, String id, Double salary) {
        this.name = name;
        this.id = id;
        this.salary = salary;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double bonus) {
        this.salary = bonus;
    }

    public Coder() {
    }
}
